package com.atguigu08.constructor.exer2;

/**
 * ClassName: TriAngleTest
 * Package: com.atguigu08.constructor.exer2
 * Description:
 *
 * @Author 姜
 * @Create 2023/11/20 19:21
 * @Version 1.0
 */
public class TriAngleTest {
    public static void main(String[] args) {
        // 创建TriAngle实例
        TriAngle t1 = new TriAngle();
        t1.setBase(2.8);
        t1.setHeight(3.3);
        System.out.println("面积为：" + t1.findArea());

        TriAngle t2 = new TriAngle(2.4,4.5);
        System.out.println(t2.getBase());
        System.out.println(t2.getHeight());
        System.out.println("面积为：" + t2.findArea());
    }
}
